

const App = getApp();
import base from "@src/store/base";
import { storeBindingsBehavior } from "mobx-miniprogram-bindings";
Component({
  behaviors: [storeBindingsBehavior],
  storeBindings: [{
    store: base,
    fields: ['isiPhoneX', 'themeColor', 'themeTitleColor']
  },],
  /**
   * 组件的属性列表
   */
  properties: {
    takeNo: {
      type: String

    },
    qrcodeURL:{
      type:String
    },
    hiddenSelfCode: {
      type: Boolean,
      value: true
    }

  },
  options: {
    addGlobalClass: true,
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件生命周期
   */
  lifetimes: {

    attached: function (val) {

    },
    ready: function (val) {


    },
    moved: function () {

    },
    detached: function () {

    },
  },

  /**
 * 组件所在页面生命周期
 */
  pageLifetimes: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    //放大二维码功能
    enlargeFenc(e) {
      console.log('e', e)
      let img = e.currentTarget.dataset.img;
      let type = e.currentTarget.dataset.type;
      this.selectComponent("#enlargeImage").dialogShow(img, type);
    },
    setHiddenFunc() {
      console.log("关闭")
      this.setData({
        hiddenSelfCode: true
      })
      this.triggerEvent('changeCodeVal',{value:true})
    },
    noMake() {

    }

  }
})
